<lcnc-ncam>
  <feature src="lathe/material.cfg" expanded="False" name="Workpiece" short_id="21" old-selected="False" after="" help="&lt;b&gt;Workpiece or raw material used&lt;/b&gt;" order="['PARAM_SH', 'PARAM_H1', 'PARAM_OD', 'PARAM_ID', 'PARAM_L', 'PARAM_Z', 'PARAM_H2', 'PARAM_WMODE', 'PARAM_X_RAP', 'PARAM_Z_RAP']" new-selected="False" hidden_count="0" path="0" call="&#10;(begin #sub_name)&#10;(author : Fernand Veilleux)&#10;&#10;G#param_wmode&#10;&#10;o&lt;#self_id&gt; if [#param_wmode EQ 7] (Diameter)&#10;&#9;#&lt;_x_rapid&gt;  = [#param_x_rap * 2]&#10;&#9;#&lt;_wp_dia_od&gt; = [#param_od]&#10;&#9;#&lt;_wp_dia_id&gt; = [#param_id]&#10;o&lt;#self_id&gt; else&#10;&#9;#&lt;_x_rapid&gt;  = #param_x_rap&#10;&#9;#&lt;_wp_dia_od&gt; = [#param_od / 2]&#10;&#9;#&lt;_wp_dia_id&gt; = [#param_id / 2]&#10;o&lt;#self_id&gt; endif&#10;#&lt;_z_rapid&gt;  = #param_z_rap&#10;&#10;/ o&lt;#self_id1&gt; if [#param_sh EQ 1]&#10;&#9;/ o&lt;show_stock&gt; CALL [#param_z] [#param_l]&#10;/ o&lt;#self_id1&gt; endif&#10;&#10;(end #sub_name)" definitions="" icon="l-stock.png" type="workpiece" id="workpiece_002" before="">
    <param type="bool" call="#param_sh" name="Show limits" value="0" path="0:0"/>
    <param type="sub-header" call="#param_h1" name="Size and coord" path="0:1"/>
    <param no_zero="1" name="Ext. diameter" metric_value="50.0" value="2.0" header="h1" call="#param_od" path="0:1:0" minimum_value="0.0" type="float" icon="e-diam.png"/>
    <param tool_tip="Only if hollow" name="Int. diameter" metric_value="0.0" value="0.0" header="h1" call="#param_id" path="0:1:1" minimum_value="0.0" type="float" icon="i-diam.png"/>
    <param no_zero="1" name="Length" metric_value="250.0" value="10.0" header="h1" call="#param_l" path="0:1:2" minimum_value="0.0" type="float" icon="width.png"/>
    <param tool_tip="Z coord at tip" name="Begin position" metric_value="0.0" value="0.0" header="h1" call="#param_z" path="0:1:3" type="float" icon="z.png"/>
    <param type="sub-header" call="#param_h2" name="Params" path="0:2"/>
    <param name="Work mode" value="7" header="h2" call="#param_wmode" path="0:2:0" type="combo" options="Diameter=7:Radius=8" icon="circle-rad-dia.png"/>
    <param tool_tip="To right of material" no_zero="1" name="X Rapid" metric_value="12.0" value="0.50" header="h2" call="#param_x_rap" path="0:2:1" minimum_value="0.0" type="float" icon="lathe-rappid-x.png"/>
    <param tool_tip="From material" no_zero="1" name="Z Rapid" metric_value="12.0" value="0.50" header="h2" call="#param_z_rap" path="0:2:2" icon="lathe-rappid.png" type="float" minimum_value="0.0"/>
  </feature>
  <feature src="lathe/tool-change.cfg" expanded="False" name="Tool Change" short_id="22" old-selected="True" after="" help="&lt;b&gt;Change Tool and/or settings&lt;/b&gt;&amp;#10;Changes setting accordingly even if disabled" order="['PARAM_ACT', 'PARAM_H1', 'PARAM_DNUM', 'PARAM_US', 'PARAM_SPINDLE_DIR', 'PARAM_COOLING', 'PARAM_H2', 'PARAM_MODE', 'PARAM_SPEED', 'PARAM_MAX_SPEED', 'PARAM_H8', 'PARAM_R_FEED', 'PARAM_C_DPT', 'PARAM_H4', 'PARAM_F_FEED', 'PARAM_FC_DPT', 'PARAM_HC', 'PARAM_X_SAFE', 'PARAM_IX_SAFE', 'PARAM_Z_SAFE']" new-selected="False" hidden_count="0" path="1" call="&#10;(begin #sub_name)&#10;(author : Fernand Veilleux)&#10;&#10;o&lt;#self_id_act&gt; if [#param_act AND [#param_dnum NE #5400]]&#10;&#9;M9  (coolant off)&#10;&#9;T#param_dnum M6&#10;o&lt;#self_id_act&gt; endif&#10;&#10;#&lt;_tool_usage&gt;   =  #param_us&#10;#&lt;_spindle_dir&gt;  =  #param_spindle_dir&#10;#&lt;_cooling_mode&gt; =  #param_cooling&#10;#&lt;_rough_feed&gt;   =  #param_r_feed&#10;#&lt;_rough_cut&gt;    =  #param_c_dpt&#10;#&lt;_finish_feed&gt;  =  #param_f_feed&#10;#&lt;_finish_cut&gt;   =  #param_fc_dpt&#10;o&lt;#self_id1&gt; if [#param_mode EQ 0]&#10;&#9;G96 D#param_max_speed S#param_speed&#10;o&lt;#self_id1&gt; else&#10;&#9;G97 S#param_speed&#10;o&lt;#self_id1&gt; endif&#10;&#10;o&lt;#self_id2&gt; if [#&lt;_spindle_dir&gt; GT 0]&#10;&#9;M#&lt;_spindle_dir&gt;&#10;&#9;G4 P#&lt;_spindle_speed_up_delay&gt;&#10;o&lt;#self_id2&gt; endif&#10;&#10;o&lt;get_max&gt; CALL [41] [2] [#5410 * 1.1] [#param_z_safe]&#10;#&lt;_z_clear&gt;  = #41&#10;&#10;o&lt;get_max&gt; CALL [41] [2] [#5410 * 1.1] [#param_x_safe]&#10;#&lt;_x_clear&gt;  = #41&#10;&#10;#&lt;_ix_clear&gt;  = #param_ix_safe&#10;&#10;o&lt;#self_id3&gt; if [#&lt;_lathe_diameter_mode&gt; EQ 1] (Diameter)&#10;&#9;#&lt;_x_clear&gt;  = [#&lt;_x_clear&gt; * 2]&#10;&#9;#&lt;_ix_clear&gt; = [#&lt;_ix_clear&gt; * 2]&#10;o&lt;#self_id3&gt; endif&#10;F#&lt;_rough_feed&gt;&#10;&#10;(end #sub_name)" definitions="" icon="lathe-tool-change.png" type="tool_change" id="tool_change_001" before="">
    <param tool_tip="Params will be set even if disabled" name="Active" value="1" call="#param_act" path="1:0" type="bool" icon="enable.png"/>
    <param type="sub-header" call="#param_h1" name="Tool and usage" path="1:1"/>
    <param tool_tip="Select from tool table" name="Tool number" value="0" header="h1" call="#param_dnum" path="1:1:0" type="tool" icon="lathe-tool.png"/>
    <param tool_tip="Select usage for this tool" name="Usage" value="0" header="h1" call="#param_us" path="1:1:1" type="combo" options="Roughing and finishing=0:Roughing=1:Finishing=2" icon="tool-usage.png"/>
    <param tool_tip="Select spindle rotation" name="Start spindle" value="3" header="h1" call="#param_spindle_dir" path="1:1:2" type="combo" options="No=5:Clockwise=3:Counter-clockwise=4" icon="lathe-dir.png"/>
    <param tool_tip="Use flood, mist or none" name="Use cooling" value="8" header="h1" call="#param_cooling" path="1:1:3" type="combo" options="None=9:Flood=8:Mist=7" icon="snowflake.png"/>
    <param type="sub-header" call="#param_h2" name="Spindle speed" path="1:2"/>
    <param tool_tip="Constant surface speed or RPM" name="Mode" value="0" header="h2" call="#param_mode" path="1:2:0" type="combo" options="Constant surface=0:RPM=1" icon="lathe-chuck.png"/>
    <param tool_tip="Set surface or spindle speed" name="Surface/spindle speed" value="1000" header="h2" call="#param_speed" path="1:2:1" icon="tool-spindle.png" type="int" minimum_value="10"/>
    <param tool_tip="Set spindle speed" name="Max spindle speed" value="1500" header="h2" call="#param_max_speed" path="1:2:2" icon="tool-spindle.png" type="int" minimum_value="100"/>
    <param tool_tip="Set these when usage is roughing" type="sub-header" call="#param_h8" name="Roughing" path="1:3"/>
    <param tool_tip="Feed at 100% engagement" no_zero="1" name="Feed" metric_value="125.0" value="5.0" header="h8" call="#param_r_feed" path="1:3:0" minimum_value="0.0" type="float" icon="lathe-feed.png"/>
    <param tool_tip="Depth of cutter engagment in machine units per pass" no_zero="1" name="Cut depth" metric_value="0.05" value="0.02" header="h8" call="#param_c_dpt" path="1:3:1" minimum_value="0.0" type="float" icon="lathe-depth-step.png"/>
    <param tool_tip="Set these when usage include finishing" type="sub-header" call="#param_h4" name="Finishing" path="1:4"/>
    <param tool_tip="Feed at 100% engagement" no_zero="1" name="Feed" metric_value="50.0" value="2.0" header="h4" call="#param_f_feed" path="1:4:0" minimum_value="0.0" type="float" icon="lathe-feed.png"/>
    <param tool_tip="Depth of cutter engagment in machine units per pass" no_zero="1" name="Cut depth" metric_value="0.025" value="0.01" header="h4" call="#param_fc_dpt" path="1:4:1" minimum_value="0.0" type="float" icon="lathe-depth-step.png"/>
    <param type="sub-header" call="#param_hc" name="Clearances" path="1:5"/>
    <param no_zero="1" name="X clear" metric_value="3.0" value="0.125" header="hc" call="#param_x_safe" path="1:5:0" minimum_value="0.0" type="float" icon="lx-clear.png"/>
    <param no_zero="1" name="Internal X clear" metric_value="1.0" value="0.040" header="hc" call="#param_ix_safe" path="1:5:1" minimum_value="0.0" type="float" icon="ix-clear.png"/>
    <param no_zero="1" name="Z clear" metric_value="3.0" value="0.125" header="hc" call="#param_z_safe" path="1:5:2" minimum_value="0.0" type="float" icon="lz-clear.png"/>
  </feature>
</lcnc-ncam>
